home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
fish
/
751-760
/
751
/
annotate
/
openwithpattern.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-03-18
|
816b
|
32 lines
/**
**
** OpenWithPatern.rexx
**
** Annotate 1.8 and higher only
**
**/
OPTIONS RESULTS
address 'Annotate_Rexx' /* Address Ann's rexx port */
/* use one of Annotates built
in requesters to find out
what pattern they want */
REQUESTER LIST "'Pick a pattern:' '_Cancel' '#?(.c|.h|makefile)' '#?(.a|.asm|.i|makefile)' '#?(.rexx)'"
if RESULT ~== '_Cancel' then
do
set pattern RESULT /* Set pattern gadget in file requester */
oldpat = RESULT /* store the old pattern */
domenu open_new... /* Open a file in a new window */
set pattern oldpat /* set the pattern gadget back */
end